package com.vic.sb04.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Victor
 * date: 2019/4/28 15:48
 */
@Slf4j
@RestController
@RequestMapping("test")
public class TestController {

//    Logger log = LoggerFactory.getLogger(LogTestController.class);

    @GetMapping("test1")
    public String test() {

        log.trace("trace");
        log.debug("debug");
        log.info("info");
        log.warn("warn");
        log.error("error");

        return "ok";
    }

}
